﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VersionComparer.UI.ExtendedTreeView
{
    public class Filter
    {

        public Filter()
        {

        }
        public Filter(string text, bool ignoreCase)
        {
            IgnoreCase = ignoreCase;
            if (text != null)
                Filters = text.Split(new char[] { '*' }, StringSplitOptions.RemoveEmptyEntries);
            else
                Filters = new string[0];

        }
        public string[] Filters
        {
            get;
            set;
        }

        public bool Cancel
        {
            get;
            set;
        }

        public bool IgnoreCase
        {
            get;
            set;
        }
    }

}
